/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

/**
 *
 * @author Sobrenombre
 */
public class Semana {
    private int idSemana;
    private int demanda;
    private int vendido;
    private int stockInicial;
    private int stockFinal;
    private int pedido;
    private int arribo;
    private int demora;
    private float kOrden;
    private float kMantenimiento;
    private float kStockOut;
    private float costoTotal;

    public Semana(int idSemana, int demanda, int vendido, int stockInicial, int stockFinal, int pedido, int arribo,
                    int demora, float kOrden, float kMantenimiento, float kStockOut){
        this.idSemana = idSemana;
        this.demanda = demanda;
        this.vendido = vendido;
        this.stockInicial = stockInicial;
        this.stockFinal = stockFinal;
        this.pedido = pedido;
        this.arribo = arribo;
        this.demora = demora;
        this.kOrden = kOrden;
        this.kMantenimiento = kMantenimiento;
        this.kStockOut = kStockOut;
        this.costoTotal = kOrden + kMantenimiento + kStockOut;

    }

    public int getIdSemana() {
        return idSemana;
    }

    public int getDemanda() {
        return demanda;
    }

    public int getStockInicial() {
        return stockInicial;
    }

    public int getStockFinal() {
        return stockFinal;
    }

    public int getPedido() {
        return pedido;
    }

    public int getArribo() {
        return arribo;
    }

    public int getDemora() {
        return demora;
    }

    public float getKOrden() {
        return kOrden;
    }

    public float getKMantenimiento() {
        return kMantenimiento;
    }

    public float getKStockOut() {
        return kStockOut;
    }

    public float getCostoTotal() {
        return costoTotal;
    }

    public int getVendido() {
        return vendido;
    }

    @Override
    public String toString(){
        String cadena = "";
        cadena += idSemana + "\t";
        cadena += this.arribo + "\t";
        cadena += this.stockInicial  + "\t";
        cadena += this.demanda  + "\t";
        cadena += this.vendido  + "\t";
        cadena += this.stockFinal + "\t";
        cadena += this.pedido  + "\t";
        cadena += this.demora + "\t";
        cadena += this.kOrden + "\t";
        cadena += this.kMantenimiento + "\t";
        cadena += costoTotal + "\n";

        return cadena;
    }

}
